package com.franklin.ideaplugin.api.beans;

import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.annotation.JSONType;
import com.franklin.ideaplugin.api.json.fastjson2.PresentableJsonBeanSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.LinkedHashMap;

/**
 * @author Ye Junhui
 * @since 2023/7/2 16:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JSONType(serializer = PresentableJsonBeanSerializer.class)
public class DateClass implements IPresentableJsonBean,IMultiValueJsonBean{

    /**
     * 类全称
     */
    private String qualifiedName;

    /**
     * 文件路径
     */
    private String datePattern;

    /**
     * 日期信息
     */
    private String dateValue;


    @Override
    public String presentableString() {
        return this.dateValue;
    }

    @Override
    public Object getDefaultValue() {
        return this.dateValue;
    }
}
